package cn.tx.service;

import static org.junit.Assert.*;

import java.util.Date;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cn.tx.model.Emp;



public class EmpServiceTest1 {
	
	EmpService empService;

	@Test
	public void testSave() {
		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("ApplicationContext.xml");
		EmpService empService = (EmpService) ctx.getBean("empService");
		/*Emp emp = new Emp();
		emp.setAddress("北京");
		emp.setBirthday(new Date());
		emp.setEmail("renliang@126.com");
		emp.setGender(1);
		emp.setName("任亮");
		emp.setPassword("123");
		emp.setTel("18612110485");
		emp.setUsername("renliang");
		empService.save(emp);*/
		
	}

	
}
